package com.carcenter.common.dto;

import com.fasterxml.jackson.annotation.JsonCreator;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class SmsDto {
    private String mobile;
    private String code;
    @JsonCreator
    public static SmsDto fromMobile(String mobile) {
        SmsDto dto = new SmsDto();
        dto.mobile = mobile;
        return dto;
    }
}
